{% extends '::base.html.twig' %}

{% block title %}Survey{% endblock %}
{% block body %}{%block content %}
    <h1>Zaproszenie</h1>

    <table class="record_properties">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ entity.id }}</td>
            </tr>
            <tr>
                <th>Name</th>
                <td>{{ entity.name }}</td>
            </tr>
            <tr>
                <th>Surname</th>
                <td>{{ entity.surname }}</td>
            </tr>
            <tr>
                <th>Email</th>
                <td>{{ entity.email }}</td>
            </tr>
            <tr>
                <th>Token</th>
                <td>{{ entity.token }}</td>
            </tr>
            <tr>
                <th>Filled</th>
                <td>{{ entity.filled }}</td>
            </tr>
            <tr>
                <th>Createdat</th>
                <td>{{ entity.createdAt|date('Y-m-d H:i:s') }}</td>
            </tr>
            <tr>
                <th>Updatedat</th>
                <td>{{ entity.updatedAt|date('Y-m-d H:i:s') }}</td>
            </tr>
            <tr>
                <th>Result matrix</th>
                <td>
                    <table>
                    {% for row in compsArray %}
                        <tr>
                        {%for col in row %}
                            <td style="text-align:center;padding-top:15px;padding-bottom:13px;width:50px;border:1px solid black;padding-left:5px; padding-right:5px">{{col|round(3, 'floor')}}</td>
                        {%endfor%}
                        </tr>
                        
                    {%endfor%}
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

        <ul class="record_actions">
    <li>
        <a href="{{ path('invitation') }}">
            Back to the list
        </a>
    </li>
    <li>
        <a href="{{ path('invitation_edit', { 'id': entity.id }) }}">
            Edit
        </a>
    </li>
    <li>{{ form(delete_form) }}</li>
</ul>{% endblock %}
{% endblock %}
